<script setup>
import TabbarTea from "../component/TabbarTea.vue";
const arr =[
  {
    icon: '/static/image/tea2.png',
    title: '留校登记记录',
    to: '/pages/function/loginTea',
  },
  {
    icon: '/static/image/tea3.png',
    title: '审批记录',
    to: '/pages/function/examTea',
  },
  {
    icon: '/static/image/tea1.png',
    title: '角色切换',
    to: '/pages/function/people',
  }
]

const toNext = (to) => {
  uni.navigateTo({
    url: to
  });
};
</script>

<template>
<view class="back">
  <view class="df mb10" v-for="(item,index) in arr" :key="index">

    <view class="cd dfl" @click="toNext(item.to)">

      <view>
        <image class="icon" :src="item.icon"></image>
      </view>

      <view>
        <text class="title">{{item.title}}</text>
      </view>

      <view>
        <image class="jt" src="/static/image/jiantou.png"></image>
      </view>

    </view>

  </view>
  <view>
    <TabbarTea :cur-index="2"/>
  </view>
</view>
</template>

<style scoped>
.back{
  background-color: #F2F4F7;
  height: 670px;
  padding-top: 12px;
}
.df{
  display: flex;
  justify-content: center;
}
.mb10{
  margin-bottom: 10px;
}
.cd{
  width: 351px;
  height: 80px;
  background: #FFFFFF;
  box-shadow: 0 2px 5px 0 #E2E4EB;
  border-radius: 10px;
}
.icon{
  width: 36px;
  height: 36px;
  margin: 0px 15px;
}
.dfl{
  display: flex;
  justify-content: start;
  align-items: center;

}
.title{
  width: 90px;
  height: 21px;
  font-weight: 400;
  font-size: 15px;
  color: #212121;
}
.jt{
  width: 8.05px;
  height: 14.18px;
}
</style>